package com.sl.springboot.service;

import com.sl.springboot.model.Admin;
import com.sl.springboot.model.Coach;
import com.sl.springboot.model.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 用户Service层接口
 * @author: mty
 */
public interface CoachService {

    //分页查询
    public PageInfo<Coach> findPageInfo(Integer pageIndex, Integer pageSize, Map mp);

    //添加
    public int addCoach(Coach coach);

    //删除
    public int deleteCoach(String id);

    //修改
    public int updateCoach(Coach coach);

    //根据ID查询
    public Coach findCoachById(String id);

    //查询所有
    public List<Coach> getAll();

    //按照条件查询
    public List<Coach> queryFilter(Map mp);
}
